* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	height: 100vh;
	display: flex;
	font-family: Arial, sans-serif;
}

/* 左侧导航 */
.nav-container {
	width: 220px;
	background: #2c3e50;
	color: white;
	transition: 0.3s;
}

.nav-menu {
	list-style: none;
	padding: 20px 0;
}

.nav-item {
	margin: 8px 0;
}

.nav-link {
	display: block;
	padding: 12px 20px;
	color: #bdc3c7;
	text-decoration: none;
	transition: 0.3s;
}

.nav-link:hover {
	background: #34495e;
	color: white;
}

/* 右侧内容区 */
.content-container {
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Tab栏 */
.tab-bar {
	height: 40px;
	background: #f8f9fa;
	display: flex;
	align-items: center;
	padding: 0 15px;
	border-bottom: 1px solid #ddd;
	overflow-x: auto;
}

.tab-item {
	height: 30px;
	min-width: 140px;
	padding: 0 15px;
	background: white;
	border: 1px solid #ddd;
	display: flex;
	align-items: center;
	margin-right: 5px;
	cursor: pointer;
	position: relative;
}

.tab-item.active {
	border-color: #3498db;
	background: #3498db;
	color: white;
}

.tab-close {
	margin-left: 10px;
	cursor: pointer;
}

/* 内容区 */
.iframe-container {
	flex: 1;
	position: relative;
}

.iframe-container iframe {
	width: 100%;
	height: 100%;
	border: none;
}

/* 右键菜单 */
.context-menu {
	position: fixed;
	background: white;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	min-width: 120px;
	display: none;
	z-index: 1000;
}

.context-item {
	padding: 8px 15px;
	cursor: pointer;
}

.context-item:hover {
	background: #f5f5f5;
}

/* 移动端适配 */
@media ( max-width : 768px) {
	.nav-container {
		position: fixed;
		left: -220px;
		top: 0;
		bottom: 0;
		z-index: 1000;
	}
	.nav-container.active {
		left: 0;
	}
	.mobile-menu-toggle {
		display: block;
		position: fixed;
		left: 10px;
		top: 10px;
		z-index: 1001;
		padding: 10px;
		background: #3498db;
		color: white;
		border: none;
	}
	.tab-item {
		min-width: 120px;
		padding: 0 10px;
	}
}